<?php
/**
 * Filtro form.
 *
 * @package     gestdent
 * @subpackage  form
 * @author      Your name here
 * @version     SVN: $Id: sfPropelFormTemplate.php 10377 2008-07-21 07:10:32Z dwhittle $
 * @link        lib/form/FitroForm.class.php
 */
class GestdentReserva2FormCustom extends sfForm
{
  public function configure()
  {
    $this->setWidgets(array(
      //'Fecha'    => new sfWidgetFormDate(array('format' => '%day%-%month%-%year%')),
      'Fecha'    => new sfWidgetFormJQueryDate(array('format' => '%day%-%month%-%year%')),
      'sucursal_id' => new sfWidgetFormPropelChoice(array('model' => 'GestdentSucursal', 'add_empty' => false)),

    ));

    $this->widgetSchema['Fecha']->setOption('label','Seleccionar fecha');
    $this->widgetSchema['sucursal_id']->setOption('label','Seleccionar sucursal');

    $this->setValidators(array(
      'sucursal_id'              => new sfValidatorPropelChoice(array('model' => 'GestdentSucursal', 'column' => 'id', 'required' => true)),
    ));

  }
}